/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.web30core.store;

import com.sun.syndication.feed.atom.Entry;
import com.sun.syndication.feed.atom.Feed;
import com.sun.syndication.io.FeedException;
import java.io.InputStream;
import java.net.URI;
import java.net.URL;
import java.util.Date;

/**
 *
 * @author xiazy
 */
public class AtomStoreService {



    static void checkExistence(String path) {
    }

    static Feed getFeedDocument() throws FeedException {
        return null;
    }

    static Feed getFeedDocument(URI feedUri) {
        return null;
    }

    static void updateFeedDocumentWithNewEntry(
            Feed f, Entry e) {
        return ;
    }

    static void updateFeedDocumentRemovingEntry(
            Feed f, URL entryUrl)  {
        return;
    }

    static void updateFeedDocumentWithExistingEntry(
            Feed f, Entry e) {
        return;
    }

    static Entry findEntry(URL entryUrl) {
        return null;
    }



    static void createEntryDocument(String id, Entry e) {

    }

    static void createMediaDocument(String id, byte[] content) {

    }

    static void deleteEntry(String entryId) {

    }

    static InputStream createDefaultFeedDocument(
            URL uri) {
            return null;
    }

    static Entry createDefaulMediaLinkEntryDocument() {
        Entry e = new Entry();
        e.setTitle("Media Entry");
        Date d = new Date();
        e.setCreated(d);
        e.setUpdated(d);
        return e;
    }
}
